ROBLOX has had its own virtual economy since 2007 and, last year, we introduced two new features–Game Passes and Affiliate Gear Sales–that started to close the gap between the economy and building. We promised then that we’d eventually complete the circle and implement the ability for builders to sell items in-game. Today, after a lengthy public test in ROBLOX Battle, we’ve successfully enabled in-game transactions across all games in ROBLOX.
Builders can implement in-game sales by utilizing “MarketplaceService”, a new addition to ROBLOX’s Lua API. This new service features several useful aspects, the main one being the “PromptPurchase” function, which will allow you to prompt players to buy items in your games. Another useful aspect is the “GetProductInfo” function, which will allow you to see various stats of in-game sale items, including a description and cost of the item. We tested this API in ROBLOX Battle in the form of a store, though how you choose to implement the code is entirely your decision.
Continue reading